package com.zzx.test.future;

import org.junit.Test;

public class ThirteenClass1 {

    @Test
    public void switchTest() {
        System.out.println(switchJava13("june"));
    }

    public static String switchJava13(String month) {
        return switch (month) {
            case "march", "april", "may":
                yield "春天";
            case "june", "july", "august":
                yield "夏天";
            case "september", "october", "november":
                yield "秋天";
            case "december", "january", "february":
                yield "冬天";
            default:
                yield "month error";
        };
    }

}
